﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteAdmin.Master" Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.ViewModels.ViewAnalogAlbumViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">Ontsloten Analoge mappen</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderAction("AdminMenu", "Miscellaneous"); %>
    <h2>Ontsloten Analoge mappen</h2>
    <div style="display: inline-block; width: 100%">
        <%
        foreach (var item in Model.viewAnalogAlbums)
        {
        %>
            <div style="display: inline-block">
                <div style="width: 50px; float: left; display: inline-block"><h4><%: item.Mapnummer %></h4></div>
            </div>
        <%
        }
        %>
    </div>
    <div style="width: 100%; text-align: left;">
        <%
        int firstPageIndex = 0;
        while (Model.numberOfRowsAnalogAlbums > (firstPageIndex * Model.pageSize))
        {
        %>
            <%:Html.ActionLink((firstPageIndex + 1).ToString(), "ViewAnalogAlbums", "Report", new { analogAlbumIndex = firstPageIndex}, null)%>&nbsp;
        <%
            firstPageIndex++;
        }
        %>
    </div>
</asp:Content>
